package net.zjitc.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import net.zjitc.entity.Category;
import net.zjitc.exception.CategoryException;

import java.util.List;

/**
 * @auther 郭梦婷
 * @create 2022-04-27 14:23:08
 * @describe 服务类
 */
public interface ICategoryService extends IService<Category> {
        public List<Category> getListCategory(Integer type) throws CategoryException;
        public Page<Category> getPageCateGory(Integer type, Integer pagenum, Integer pagesize) throws CategoryException;

        Category addLevel(Category category);

        Category findById(Integer cat_id);


        Integer deleteById(Integer cat_id);

        Category updateByid(Category category);

}
